﻿using System;
using Microsoft.Practices.Unity;
using YmtSystem.CrossCutting;
using YmtSystem.Infrastructure.EventBusService;

namespace YmtAuth.EventHandler
{
    public class RegisterServiceTask : RegisterServiceBootstrapperTask
    {
        public RegisterServiceTask(IUnityContainer container) : base(container) { }

        public override TaskContinuation Execute()
        {
            EventBus.Instance.Subscribe(new YmtUserPasswordChangeEventHandler());
            EventBus.Instance.Subscribe(new BlackUserEventHandler());
            EventBus.Instance.Subscribe(new LoginSafeVerifyEventHandler());
            return TaskContinuation.Continue;
        }
    }
}
